import Layout from '@/layout'

export default {
  path: '/task',
  component: Layout,
  redirect: '/task/list',
  name: 'Task',
  meta: { title: '今日任务', icon: 'message', noCache: true, roles: ['news'] },
  children: [
    {
      path: 'create',
      name: 'TaskCreate',
      component: () => import('@/views/task/create'),
      meta: { title: '添加任务', icon: 'star', noCache: true }
    },
    {
      path: 'edit/:id',
      component: () => import('@/views/task/edit'),
      meta: { title: '编辑任务', noCache: true },
      hidden: true
    },
    {
      path: 'list',
      name: 'TaskList',
      component: () => import('@/views/task/list'),
      meta: { title: '任务列表', icon: 'star', noCache: true }
    },
    {
      path: 'check',
      name: 'TaskCheck',
      component: () => import('@/views/task/check'),
      meta: { title: '审核列表', icon: 'star', noCache: true }
    }
  ]
}
